<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="projectmanagement/Engineering_engineeringList" method="post">
        <div class="searchBar">
            <table class="searchContent">
            	<tr>
            		<td>
            			 工程名称：
            			 <input type="text" id="engineeringName" name="b_T_Ufp_Engineering.engineeringName" value="${b_T_Ufp_Engineering.engineeringName }"/>
            		</td>
            		<td>
            		     设计师：
            		     <s:select label="" headerKey="" headerValue="--请-选-择--" listKey="realName" list="list_loginname" listValue="realName" name="b_T_Ufp_Engineering.designerName"  cssStyle="width:150px;"/>
            		</td>
            		<td>
	            		预算时期：
	            		<input type="text" id="strattime" name="strattime" value="${strattime}" class="date"/>
            		</td>
            		<td>
            		 	 至：
            		 	 <input type="text" id="endtime" name="endtime" value="${endtime}" class="date"/>
            		</td>
            	</tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    搜索
                                </button>
                            </div>
                        </div>
                    </li>
                  
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li>
                <a class="add" href="projectmanagement/Engineering_engineeringDetail?status=${status}" target="navTab" rel="materialDetail"  width="530" height="460"><span>添加</span></a>
            </li>
            <li>
                <a title="确实要删除这些记录吗?" target="selectedTodo" rel="checkIds" href="projectmanagement/Engineering_engineeringDelete?status=${status}" class="delete"><span>删除</span></a>
          
            <li class="line">
                line
            </li>
           
        </ul>
    </div>
    
    <table class="table" width="125%" layoutH="140">
        <thead>
            <tr>
                <th width="2%">
                    <input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl">
                </th>
                <th width="10%">
                    操作
                </th>
                <th width="2%" >
              序号        
                </th>
                 <th width="5%" orderField="engineering_num" <c:if test="${(pager.orderField)== 'engineering_num' }">class="${pager.orderDirection}"</c:if>>
         工程编号
                </th>
                 <th width="8%" orderField="engineering_name" <c:if test="${(pager.orderField)== 'engineering_name' }">class="${pager.orderDirection}"</c:if>>
         工程名称
                </th>
                <th width="8%" orderField="engineering_type" <c:if test="${(pager.orderField)== 'engineering_type' }">class="${pager.orderDirection}"</c:if>>
         工程类型
                </th>
             
                <th width="8%" orderField="customer_name" <c:if test="${(pager.orderField)== 'customer_name' }">class="${pager.orderDirection}"</c:if>>
                 客户名称
                </th>
                 <th width="5%" orderField="customer_type" <c:if test="${(pager.orderField)== 'customer_type' }">class="${pager.orderDirection}"</c:if>>
              客户类型
                </th>
                 <th width="5%" orderField="budget_time" <c:if test="${(pager.orderField)== 'budget_time' }">class="${pager.orderDirection}"</c:if>>
                  预算时间
                </th>
                 <th width="10%" orderField="engineering_adress" <c:if test="${(pager.orderField)== 'engineering_adress' }">class="${pager.orderDirection}"</c:if>>
                工程地址
                </th>
                 <th width="5%" orderField="apartment" <c:if test="${(pager.orderField)== 'apartment' }">class="${pager.orderDirection}"</c:if>>
                户型
                </th>
                 <th width="7%" orderField="Area" <c:if test="${(pager.orderField)== 'Area' }">class="${pager.orderDirection}"</c:if>>
                 面积
                </th>
                  <th width="5%" orderField="designer_name" <c:if test="${(pager.orderField)== 'designer_name' }">class="${pager.orderDirection}"</c:if>>
               设计师
                </th>
                  <%-- <th width="5%" orderField="spare" <c:if test="${(pager.orderField)== 'spare' }">class="${pager.orderDirection}"</c:if>>
                  报价时间
                </th> --%>
                  <th width="5%" orderField="salesman" <c:if test="${(pager.orderField)== 'salesman' }">class="${pager.orderDirection}"</c:if>>
                  业务员
                </th>
                <th width="5%" orderField="salesman" <c:if test="${(pager.orderField)== 'salesman' }">class="${pager.orderDirection}"</c:if>>
                 项目总价
                </th>
                <th width="5%" orderField="salesman" <c:if test="${(pager.orderField)== 'salesman' }">class="${pager.orderDirection}"</c:if>>
                  自购材料总价
                </th>
                
                  <th width="5%" orderField="create_user" <c:if test="${(pager.orderField)== 'create_user' }">class="${pager.orderDirection}"</c:if>>
                  操作员
                </th>
            </tr>
        </thead>
        <tbody>
    
        <c:forEach items="${pager.pageRecords}" var="b_T_Ufp_Engineering" varStatus="s">
            <tr target="sid_user" rel="1">
                <td>
                    <input name="checkIds" value="${b_T_Ufp_Engineering.uuid}" type="checkbox">
                </td>
                 <td>
                	<a title="报价" target="navTab" href="projectmanagement/EngineerPosition_engineerPositionList?flag=${b_T_Ufp_Engineering.uuid},${b_T_Ufp_Engineering.engineeringName},${b_T_Ufp_Engineering.engineeringType}&isupdate=${b_T_Ufp_Engineering.status}" rel="engineerPositionList" class="btnAdd">报价</a>
                    <a title="删除" target="ajaxTodo" href="projectmanagement/Engineering_engineeringDelete?checkIds=${b_T_Ufp_Engineering.uuid}" class="btnDel">删除</a>
                    <a title="编辑"  href="projectmanagement/Engineering_engineeringDetail?b_T_Ufp_Engineering.uuid=${b_T_Ufp_Engineering.uuid }" target="navTab" rel="materialDetail"  class="btnEdit">编辑</a>
                    <c:choose>
	                    <c:when test="${b_T_Ufp_Engineering.spare == 'n'}">
	                   		<a title="报价打印" target="_blank"  href="projectmanagement/Engineering_engineeringReport?flag=${b_T_Ufp_Engineering.uuid},${b_T_Ufp_Engineering.engineeringType}"  class="btnLook">打印</a>
	                    </c:when>
	                    <c:otherwise>
	                    	<a title="报价打印"  target="_blank" href="projectmanagement/Engineering_engineeringReportAll?flag=${b_T_Ufp_Engineering.uuid},${b_T_Ufp_Engineering.engineeringType}"  class="btnLook">打印</a>
	                    </c:otherwise>
                    </c:choose>
                    <a title="主材打印"  target="_blank"  href="projectmanagement/Engineering_materialReport?flag=${b_T_Ufp_Engineering.uuid},${b_T_Ufp_Engineering.engineeringName},${b_T_Ufp_Engineering.engineeringType}"  class="btnLook">打印</a>
                </td>
                 <td>
                  ${s.count +pager.pageSize*(pager.currentPage-1)}
                </td>
                <td>
                    ${b_T_Ufp_Engineering.engineeringNum }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.engineeringName }
                </td>
                <td>
                <c:choose>
	                <c:when test="${b_T_Ufp_Engineering.engineeringType == 0}">
	                工装
	                </c:when>
	                <c:otherwise>
	                  家装
	                </c:otherwise>
                </c:choose>
                    
                </td>
                  <td>
                    ${b_T_Ufp_Engineering.customerName }
                </td>
                 <td>
                    ${b_T_Ufp_Engineering.customerType }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.budgetTime }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.engineeringAdress }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.apartment }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.area }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.designerName }
                </td>
                <%-- <td>
                    <fmt:formatDate value="${b_T_Ufp_Engineering.createTime}" type="date"/>
                </td> --%>
                <td>
                    ${b_T_Ufp_Engineering.salesman }
                </td> 
                <td>
                    ${b_T_Ufp_Engineering.engineeringPrice }
                </td>
                 <td>
                    ${b_T_Ufp_Engineering.materialPrice }
                </td>
                <td>
                    ${b_T_Ufp_Engineering.createUser }
                </td>
               <%--  <td>
                	<a title="报价" target="navTab" href="projectmanagement/EngineerPosition_engineerPositionList?b_T_Ufp_Engineering.uuid=${b_T_Ufp_Engineering.uuid}" rel="engineerPositionList" class="btnAdd">报价</a>
                    <a title="删除" target="ajaxTodo" href="projectmanagement/Engineering_engineeringDelete?checkIds=${b_T_Ufp_Engineering.uuid}&status=${status}" class="btnDel">删除</a>
                    <a title="编辑"  href="projectmanagement/Engineering_engineeringDetail?b_T_Ufp_Engineering.uuid=${b_T_Ufp_Engineering.uuid }&status=${status}" target="navTab" rel="materialDetail"  class="btnEdit">编辑</a>
                </td> --%>
            </tr>
            </c:forEach>
        </tbody>
    </table>
    
    <div class="panelBar">
        <jsp:include page="../include/_dwz_form_bottom.jsp" />
    </div>
</div>
